<template>
  <!-- <keep-alive :include="includeKeepAlive"> -->
  <keep-alive>
    <router-view class="c-admin-main" />
  </keep-alive>
</template>
<script>
import { mapGetters } from 'vuex'

export default {
  name: 'CAdminMain',
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {
    ...mapGetters({
      getMenu: 'menu/get',
      getLogin: 'login/get'
    }),
    includeKeepAlive() {
      const names = this.getMenu('activeMenus').map(item => item.name)
      return names
    },
    isLogin() {
      return this.getLogin('online')
    }
  },
  watch: {},
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  activated() {},
  deactivated() {},
  beforeDestroy() {},
  destroyed() {},
  methods: {}
}
</script>
<style lang="scss">
@include admin {
  .c-admin-main {
    transition: all 0.3s;
  }
}
</style>
